package cn.youqu.happy.module.member.convert.user;

import java.util.*;

import cn.youqu.happy.framework.common.pojo.PageResult;

import cn.youqu.happy.module.member.api.user.dto.UserRespDTO;
import cn.youqu.happy.module.member.controller.app.user.vo.AppUserInfoRespVO;
import cn.youqu.happy.module.member.dal.dataobject.user.MemberUserDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.youqu.happy.module.member.controller.admin.user.vo.*;

/**
 * 用户 Convert
 *
 * @author 王其岩 20112001045
 */
@Mapper
public interface MemberUserConvert {

    MemberUserConvert INSTANCE = Mappers.getMapper(MemberUserConvert.class);

    AppUserInfoRespVO convert0(MemberUserDO bean);

    UserRespDTO convert2(MemberUserDO bean);

    MemberUserDO convert(UserCreateReqVO bean);

    MemberUserDO convert(UserUpdateReqVO bean);

    UserRespVO convert(MemberUserDO bean);

    List<UserRespVO> convertList(List<MemberUserDO> list);

    PageResult<UserRespVO> convertPage(PageResult<MemberUserDO> page);

    List<UserExcelVO> convertList02(List<MemberUserDO> list);
}
